.u-search {
  width: 350px;
  .search {
    transition: all 0.3s;
    background: var(--u-bg-color-secondary);
    border: 1px solid var(--u-bg-color-overlay);
    border-radius: 4px;
    display: flex;

    input[type='text'] {
      padding: 4px 10px;
      border-radius: 4px;
      width: 100%;
      color: var(--u-text-color);
      outline: none;
      border: none;
      overflow: hidden;
      font-size: 14px;
      font-family: inherit;
      box-sizing: border-box;
      line-height: 24px;
      background: transparent;
    }

    .btn {
      display: flex;
      align-items: center;
      .close {
        color: var(--u-text-color-regular);
        cursor: pointer;
      }
      .close:hover {
        color: var(--u-text-color-dark);
      }

      .search-btn {
        display: flex;
        justify-content: center;
        color: var(--el-text-color-primary);
        cursor: pointer;
        width: 30px;
        font-size: 14px;
      }
    }
  }
  .active {
    border-color: var(--u-color-primary);
    background: var(--u-bg-color);
  }

  label {
    display: block;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    flex: 1;
  }

  label:hover {
    cursor: text;
  }

  label::before {
    content: attr(data-before);
  }

  label::after {
    content: attr(data-after);
  }

  label::before,
  label::after {
    display: block;
    position: absolute;
    padding: 4px 10px;
    line-height: 24px;
    font-family: inherit;
    box-sizing: border-box;
    color: var(--u-text-color-placeholder);
  }

  @keyframes placeholder-before {
    0% {
      transform: translateY(0%);
      opacity: 1;
    }
    100% {
      transform: translateY(-100%);
      opacity: 0;
    }
  }

  @keyframes placeholder-after {
    0% {
      transform: translateY(0%);
      opacity: 0;
    }
    100% {
      transform: translateY(-100%);
      opacity: 1;
    }
  }

  .animate::before {
    animation: 0.4s placeholder-before ease-out;
  }

  .animate::after {
    animation: 0.4s placeholder-after ease-out;
  }

  .animate::before,
  .animate::after {
    animation-fill-mode: forwards;
  }
}